import Vue from 'vue'
import Router from 'vue-router'


import Main from '@/base/main'
import HomePage from '@/components/index/index'

import Personalcenter from '@/components/center/Personalcenter'
import Perinfo from '@/components/center/Perinfo'
import Enterprise from '@/components/enterprise/Enterprise'
import adminlist from '@/components/enterprise/adminlist'
import addadmin from '@/components/enterprise/addadmin'
import editadmin from '@/components/enterprise/editadmin'


import corporatecenter from '@/components/center/corporatecenter' //企业会员中心
import myaccount from '@/components/account/myaccount' //我的账户
import withDrawList from '@/components/account/withDrawList'
import withDrawDetail from '@/components/account/withDrawDetail'

import cmpanyaccount from '@/components/account/cmpanyaccount' //公司账户   
import tsactionrecord from '@/components/account/tsactionrecord' //交易记录2018/9/7
import tractiondetal from '@/components/account/tractiondetal' //交易详情   2018/9/7    
import accountsecury from '@/components/account/accountsecury' //账户安全   2018/9/7
import setpwd from '@/components/account/setpwd' //修改密码    2018/9/7
import editepaypwd from '@/components/account/editepaypwd' //修改支付密码 2018/9/7 
import bindphone from '@/components/account/bindphone' //修改支付密码 2018/9/7 
import aboutus from '@/components/aboutus/aboutus' //修改支付密码 2018/9/7 

import myupload from '@/components/myupload/myupload' //我的上传详情  2018/9/9

import uploadDetail from '@/components/myupload/uploadDetail' //我的上传详情  2018/9/9

import inquireDetail from '@/components/search/inquireDetail' //我的上传详情  2018/9/9



import buyrecord from '@/components/pay/buyrecord' //购买记录  2018/9/9
import buydetail from '@/components/pay/buydetail' //购买记录详情  2018/9/9 

import searchrecord from '@/components/search/searchrecord' //查询记录  2018/9/9 

import feedback from '@/components/feedback/feedback' //意见反馈  2018/9/9 
import systeminfo from '@/components/sysinfo/systeminfo' //意见反馈  2018/9/9 
import sysinfodetail from '@/components/sysinfo/sysinfodetail' //意见反馈  2018/9/9 
import makemoney from '@/components/spread/makemoney' //推广赚钱  2018/9/9 
import myspread from '@/components/spread/myspread' //推广赚钱  2018/9/9 
import MySpreadDetail from '@/components/spread/mySpreadDetail' //推广赚钱详情  2018/9/28

import blackname from '@/components/blacklist/blackname' //上传黑名单  2018/9/9
import disclaimer from '@/components/blacklist/disclaimer' //免责申明  2018/9/9
import confirm from '@/components/enterprise/confirm' //认证协议  2018/9/9   confirmpact
import confirmpact from '@/components/enterprise/confirmpact' //认证协议  2018/9/9   


import paied from '@/components/pay/purchasePackage' //购买套餐

import certificate from '@/components/search/certificate' //查询
import detail from '@/components/search/detail' //
import lvka from '@/components/search/lvka' //
// import searchlist from '@/components/search/searchlist' //
import searchList from '@/components/search/list' //
import searchdetail from '@/components/search/searchdetail' //


import nulls from '@/components/fresh/null'

Vue.use(Router)

export default new Router({
  // mode:"history",
  // base:__dirname,
  routes: [
    {
      name: 'Main',
      path: '/',
      redirect: '/homePage',
      component: Main,
      children: [
        {
          path: '/homePage',
          component: HomePage,
        },
        {
          path: '/corporatecenter',
          name: 'corporatecenter',
          component: corporatecenter
        },
        {
          path: '/personalcenter',
          name: 'personalcenter',
          component: Personalcenter
        },
      ]
    },
    {
      path: '/perinfo',
      name: 'perinfo',
      component: Perinfo
    },
    {
      path: '/enterprise',
      name: 'enterprise',
      component: Enterprise
    },
    {
      path: '/confirm',
      name: 'confirm',
      component: confirm
    },
    {
      path: '/myaccount',
      name: 'myaccount',
      component: myaccount
    },
    {
      path: '/withDrawList',
      name: 'WithDrawList',
      component: withDrawList
    },
    {
      path: '/withDrawDetail',
      name: 'WithDrawDetail',
      component: withDrawDetail
    },
    {
      path: '/cmpanyaccount',
      name: 'cmpanyaccount',
      component: cmpanyaccount
    }, {
      path: '/paied',
      name: 'paied',
      component: paied
    },

    , {
      path: '/certificate',
      name: 'certificate',
      component: certificate
    }, {
      path: '/detail',
      name: 'detail',
      component: detail
    }, {
      path: '/lvka',
      name: 'lvka',
      component: lvka
    }, {
      path: '/searchlist',
      name: 'searchlist',
      component: searchList,
      // meta: {
      //   keepAlive: true,
      // }
    }, {
      path: '/tsactionrecord',
      name: 'tsactionrecord',
      component: tsactionrecord
    }, {
      path: '/tractiondetal',
      name: 'tractiondetal',
      component: tractiondetal
    }, {
      path: '/accountsecury',
      name: 'accountsecury',
      component: accountsecury
    }, {
      path: '/setpwd',
      name: 'setpwd',
      component: setpwd
    },
    {
      path: '/editepaypwd',
      name: 'editepaypwd',
      component: editepaypwd
    },
    {
      path: '/bindphone',
      name: 'bindphone',
      component: bindphone
    },
    {
      path: '/uploadDetail',
      name: 'UploadDetail',
      component: uploadDetail
    },
    {
      path: '/inquireDetail',
      name: 'InquireDetail',
      component: inquireDetail
    },
    {
      path: '/buyrecord',
      name: 'buyrecord',
      component: buyrecord
    },
    {
      path: '/buydetail',
      name: 'buydetail',
      component: buydetail
    },
    {
      path: '/feedback',
      name: 'feedback',
      component: feedback
    },
    {
      path: '/systeminfo',
      name: 'systeminfo',
      component: systeminfo
    },
    {
      path: '/sysinfodetail',
      name: 'sysinfodetail',
      component: sysinfodetail
    },
    {
      path: '/aboutus',
      name: 'aboutus',
      component: aboutus
    },
    {
      path: '/blackname',
      name: 'blackname',
      component: blackname
    },
    {
      path: '/disclaimer',
      name: 'disclaimer',
      component: disclaimer
    },
    {
      path: '/confirmpact',
      name: 'confirmpact',
      component: confirmpact
    },
    {
      path: '/myupload',
      name: 'myupload',
      component: myupload
    },
    {
      path: '/searchrecord',
      name: 'searchrecord',
      component: searchrecord
    },
    {
      path: '/makemoney',
      name: 'makemoney',
      component: makemoney
    },
    {
      path: '/myspread',
      name: 'myspread',
      component: myspread
    }, {
      path: '/mySpreadDetail',
      name: 'MySpreadDetail',
      component: MySpreadDetail
    },
    {
      path: '/nulls',
      name: 'nulls',
      component: nulls
    },
    {
      path: '/searchdetail',
      name: 'searchdetail',
      component: searchdetail
    },
    {
      path: '/adminlist',
      name: 'adminlist',
      component: adminlist
    },
    {
      path: '/addadmin',
      name: 'addadmin',
      component: addadmin
    },
    {
      path: '/editadmin',
      name: 'editadmin',
      component: editadmin
    },


  ]
})
